<?php 
    $film = $this->film;
?>
<div class="film-item">
    <div class="film-item-head">
        <a href="<?php echo $film['link']; ?>" target="_blank"><?php echo $film['title']; ?></a>
    </div>
    <div class="film-item-content">
        <div class="img">
            <?php if($film['image']): ?>
                <img src="<?php echo $film['image']; ?>" width="212px" height="300"/>
            <?php else: ?>
                <img src="/site/images/default_film_image.jpg" width="212px" height="300"/>
            <?php endif; ?>
        </div>
        <div class="description">
            <?php echo $film['description']; ?>                              
        </div>
        <div class="clearfix"></div>
    </div>
    <div class="film-item-footer">
        <?php if(count(($film['categories']) > 0)): ?>
            <span class="cat-list-title">Категории: </span>  
            <?php foreach($film['categories'] as $cat): ?>
            <a href="<?php echo $this->url(array('controller' => 'film', 'action' => 'search', 'cat' => $cat['id']), 'default', true) ?>"><?php echo $cat['title']; ?></a> |                         
            <?php endforeach; ?>
        <?php endif; ?>
        <div class="rating">
            Рейтинг: <?php echo $film['rating']; ?>  
        </div>
    </div>
</div>